package com.tgy.赫夫曼树;

import java.util.Comparator;

/***
 * @ClassName: NodeComparator
 * @Description:
 * @Auther: tanggy3
 * @Date: 15:37 2023/2/15
 * @version : V1.0
 */
public class NodeComparator implements Comparator<Node> {
    @Override
    public int compare(Node o1, Node o2) {
        return o1.getValue()>o2.getValue()?-1:1;
    }
}
